# This is a simple makefile for demostration

datadir = ../data/lucene_data
data  = $(datadir)/dictData/jp
index = $(datadir)/dictIndex/jp
lucene= lucene-2.0.0/build/lucene-core-2.0.1-dev.jar
query = 日本的

default:
	javac DictIndexer.java -classpath $(lucene)
	javac TestSearcher.java -classpath $(lucene)

index: default
	@echo "Indexing dictionary data"
	java  -classpath $(lucene):./ DictIndexer $(index) $(data)

build: default index
	@echo "Rebuild everything"

test: default
	java  -classpath $(lucene):./ TestSearcher $(index) $(query)

clean : 
	rm -rf *.class
